﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

/// <summary>
/// Summary description for BusPlanProperties
/// </summary>
public class StationDetails
{
    public StationPair Stations { get; set; }
    public Bus Bus { get; set; }
    public double DistanceBetween { get; set; }
    public double DistanceToFirst { get; set; }
    public double TimeToSecondStation { get; set; }
    public double TimeToFirstStation { get; set; }
    public String StartTime { get; set; }
    public String FinishTime { get; set; }
    public bool IsFromStartingStation { get; set; }

    public StationDetails(StationPair sp, Bus b, double distB, double distF,bool isStarting)
	{
        Stations = sp;
        Bus = b;
        DistanceBetween = distB;
        DistanceToFirst = distF;
        IsFromStartingStation = isStarting;
        TimeToFirstStation = distF / b._velocity;
        TimeToSecondStation = distB / b._velocity;

	}
}